package com.cupk.service;

import com.cupk.pojo.Student;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

public interface StudentService {
    Map<String, Object> exchangeVouchers(String requestStr);

    void setBlackListStatus(Integer stuId, Integer status);

    Student findStudentByOpenid(String openid);

    String generateToken(Student student);

    Student findStudentByIdentity(String stuId, String identityCard);

    Student findStudentByStuId(String stuId);

    Student findStudentById(Integer id);

    void bindingStudent(String stuId, String openid, String unionid, String phone);

    String getAccessToken(String appid, String appSecret);

    Map<String, Object> getRealMobile(String appSecret, String code);

    List<Student> studentList(String query);

    void updatePhone(String realPhone, String stuId);

    String findOpenIdByStuId(String stuId);

    void updateAvatars(String stuId, String url);
}
